package com.project.rfidtodb.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.rfidtodb.entity.TbCommandA0;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface TbCommandA0Service extends ProcessService<TbCommandA0>, IService<TbCommandA0> {

    /**
     * 获取实时表所偶记录
     * @return
     */

    public List<TbCommandA0> selectByPage(IPage<TbCommandA0> page, LambdaQueryWrapper<TbCommandA0> queryWrapper);

    /**
     * 插入Sqlserver数据库
     * @param list
     */

    public void insertSqlServer(List<TbCommandA0> list);


    /**
     * 插入kingbase数据库
     * @param list
     */

    public void insertKingbase(List<TbCommandA0> list);


    /**
     * 加入历史表记录
     * @param list
     */

    public void insertHis(List<TbCommandA0> list);

    /**
     * 清空实时表记录
     */

    public void delete(List<TbCommandA0> list);


}
